# $Id: PKGBUILD 178960 2013-03-01 10:20:49Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=kde-agent
pkgver=20130226
pkgrel=1
pkgdesc="Startup and shutdown scripts for gpg-agent and ssh-agent in KDE"
arch=('any')
url='http://www.archlinux.org/'
license=('GPL' 'LGPL' 'FDL')
depends=('pinentry' 'openssh' 'qt4')
source=('gpg-agent-startup.sh' 'gpg-agent-shutdown.sh'
        'ssh-agent-startup.sh' 'ssh-agent-shutdown.sh')
md5sums=('baf5135003f0a406dac85c2719fbed49'
         '6838aa08aaf27962e3f833d25daa086a'
         '8b8c4f60aa66660670db20dd1beccf88'
         'a5d2f2191f31c4f869c98067010395d4')

package() {
  install -d "${pkgdir}"/etc/kde/env
  install -D -m755 {gpg,ssh}-agent-startup.sh "${pkgdir}"/etc/kde/env/

  install -d "${pkgdir}"/etc/kde/shutdown
  install -D -m755 {gpg,ssh}-agent-shutdown.sh "${pkgdir}"/etc/kde/shutdown/
}
